<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
	<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
    <%@taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查询指定类别下的所有书籍</title>
</head>
<body>
	<form action="">
		<input type="hidden" id="book_type_id" name="bookTypeId">
		<input type="hidden" id="book_type_name" name="bookTypeName">
		<table width="100%" border="0">
			<tr>
				<td colspan="5">导航:
					<a onclick="changeContent('/control/mapping/book_bookType.go','typeId=')">
							<b>顶级目录</b>
					</a>
					<s:iterator var="item" value="mapNavigation">
						>><s:a action="action_bookType" namespace="/control/book">
							<s:param name="typeId" value="#item.key"></s:param>
							<b>${item.value}</b>
						</s:a>
					</s:iterator>
				</td>
			</tr>
			<tr>
				<s:iterator value="types" var="_type" status="loop">
				<td>
					<input type="hidden" id="setTypeName">
					<input type="radio" alt="${_type.name}" title="typebook" name="bookType" value="${_type.id}" onclick="changeButtonValue('${_type.id}','${_type.name}')">
					<c:if test="${fn:length(_type.types)>0}">
						<s:a action="action_bookType" namespace="/control/book">
							<s:param name="typeId" value="#_type.id"></s:param>
							<b>${_type.name}</b>
						</s:a>
					</c:if>
					<c:if test="${fn:length(_type.types)==0}">
						${_type.name} 
					</c:if> 
					</td>
					<c:if test="${loop.count%5==0}"></tr><tr></c:if>
				</s:iterator>
			</tr>
			<tr>
				<td colspan="5" align="center">
					<input type="hidden" value="${ftlName}" name="ftlName" id="ftlName">
					<input type="button" id="_selectBook" onclick="findTypeBook(1)" value="查询类别书籍">
					<input type="reset" value="取消" onclick="resetFrom()">
				</td>
			</tr>
		</table>
	</form>
	<div id="type_book_list"></div>
</body>
</html>